﻿using System;
using System.Text;
using System.Web;
using System.Web.Mvc;

namespace InformaticaDiaryWeb
{
    public static class WebConfiguration
    {
        public static string ServerPath="";
        public static string ServerAccessMdbPath = "";
    }
    public class JQMOptions
    {
        public string Url { get; set; }

        public static string GetDataUrlAttribute(JQMOptions options)
        {
            if (options == null || String.IsNullOrEmpty(options.Url))
            {
                return string.Empty;
            }

            return "data-url=" + VirtualPathUtility.ToAbsolute(options.Url);
        }
    }
}